/*
 * @Author: Cao Shixin
 * @Date: 2021-01-29 15:40:48
 * @LastEditors: Cao Shixin
 * @LastEditTime: 2021-07-07 19:36:25
 * @Description: 
 */
class LogExtraParam {
  late String fileSubName;
  late String tag;

  LogExtraParam.fromJson(Map? json) {
    fileSubName = 'base';
    tag = '';
    if (json != null && json.isNotEmpty) {
      tag = json.containsKey('tag') ? json['tag'] ??= '' : '';
      fileSubName = json.containsKey('fileSubName') &&
              json['fileSubName'] != null &&
              (json['fileSubName'].toString().isNotEmpty)
          ? json['fileSubName']
          : 'base';
    }
  }

  Map<String, dynamic> toJson() {
    var data = <String, dynamic>{};
    data['tag'] = tag;
    data['fileSubName'] = fileSubName;
    return data;
  }
}
